/**
 * 
 */
package net.sf.cldsql.sql2json.utl;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import net.sf.cldsql.dj.container.base.DiContext;

/**
 * SjUtl
 */
public class SjContext extends DiContext {
    private HttpServletRequest request;
    public SjContext (HttpServletRequest request) {
        this.request = request;
    }
    public Map<String, String[]> getParameterMap() {
        return request.getParameterMap();
    }
    public String getPathInfo() {
        return request.getPathInfo();
    }
    
    private String method;
    public String getMethod() {
        return method != null ? method : request.getMethod();
    }
    /** @param string */
    public void setMethod(String method) {
        this.method = method;
    }
}
